/**
 * Created by udi on 2016/11/28.
 */


require(["jv", "vue", "pop", "mui"], function () {
  var Vue = require("vue");

  Vue.config.ignoredElements = ["kv", "k", "v"];

  if (!location.map.token) {
    jv.setToken();
  }

  var data = [];
  data.push({type: "业主端", name: "", url: ""});
  data.push({type: "", name: "外卖", url: "/html/store/list?communityId=1&fuwuId=7"});
  data.push({type: "", name: "远程买菜", url: "/html/store/list?communityId=1&fuwuId=6"});
  data.push({type: "", name: "超市", url: "/html/store/list?communityId=1&fuwuId=8"});
  data.push({type: "", name: "游艇", url: "/html/store/list?communityId=1&fuwuId=23"});
  data.push({type: "", name: "高尔夫", url: "/html/store/list?communityId=1&fuwuId=24"});
  data.push({type: "", name: "订单", url: "/html/order/list"});
  data.push({type: "", name: "消息", url: "/html/message/list"});
  data.push({type: "", name: "缴费", url: "/html/fee/list"});
  data.push({type: "物业端", name: "", url: ""});
  data.push({type: "", name: "物业订单列表", url: "/wuye/order/list"});
  data.push({type: "", name: "阿姨列表", url: "/wuye/ayi/list"});
  data.push({type: "", name: "消息列表", url: "/wuye/message/list"});
  data.push({type: "", name: "缴费记录", url: "/wuye/fee/list"});
  data.push({type: "", name: "个人信息", url: "/wuye/user/info"});

  //$(document.documentElement).addClass("loaded").css("animation", "loading 1s");

  jv.post("/user/info", function (res) {
    var vm = jv.vm = new Vue({
      el: '#app',
      data: {items: data, user: res},
      computed: {},
      methods: {}
    });
  })
});
